// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_PRODUCT_TEHINIC_HISTORY
// * CreateDate    : 2011-10-25 10:44:41
// * Creater       : CodeSmith
// * LastChangeDate: 2011-10-25 10:44:41
// * LastChanger   : 2011-10-25 10:44:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class ProdProductTehinicHistoryEntity : EntityBase
    {
        public ProdProductTehinicHistoryTable TableSchema
        {
            get
            {
                return ProdProductTehinicHistoryTable.Current;
            }
		}
		
		public ProdProductTehinicHistoryEntity()
        {

        }
		
		public ProdProductTehinicHistoryEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.HistoryId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_ID"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.ProductTehinicName = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TEHINIC_NAME"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
        }
		
		public ProdProductTehinicHistoryEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.HistoryId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_ID"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.ProductTehinicName = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TEHINIC_NAME"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdProductTehinicHistoryTable.Current;
            }
        }
		
		#region Perporty List
        public string HistoryId
        {
            get { return Convert.ToString(GetData(ProdProductTehinicHistoryTable.C_HISTORY_ID)); }
            set { SetData(ProdProductTehinicHistoryTable.C_HISTORY_ID, value); }
        }
		
        public string ProductId
        {
            get { return Convert.ToString(GetData(ProdProductTehinicHistoryTable.C_PRODUCT_ID)); }
            set { SetData(ProdProductTehinicHistoryTable.C_PRODUCT_ID, value); }
        }
		
        public string ProductTehinicName
        {
            get { return Convert.ToString(GetData(ProdProductTehinicHistoryTable.C_PRODUCT_TEHINIC_NAME)); }
            set { SetData(ProdProductTehinicHistoryTable.C_PRODUCT_TEHINIC_NAME, value); }
        }
		
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(ProdProductTehinicHistoryTable.C_CREATED_DATE)); }
            set { SetData(ProdProductTehinicHistoryTable.C_CREATED_DATE, value); }
        }
		
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(ProdProductTehinicHistoryTable.C_CREATED_BY)); }
            set { SetData(ProdProductTehinicHistoryTable.C_CREATED_BY, value); }
        }
		
		#endregion
	}
	
	
}	

